import Vue from 'vue';
import Vuex from 'vuex';
import actions from './action';
import mutations from "./mutation";
import getters from "./getter";
Vue.use(Vuex);

export const store = new Vuex.Store({
    state: {
        // 购物车里的商品
        cartList: [],
        // 用户的username
        username:""
    },
    mutations,
    actions,
    getters
});

